<section>
<?php
include_once 'application/modeles/gestionBD.class.php';
foreach (VariableGlobales::$lesEcrites as $uneEcrite){
    
    $id = $uneEcrite->idNewsE;
    
   $image = Chemins::IMAGES_NEWS .'/'. $uneEcrite->image;
   
   $titre = $uneEcrite->titre;
   ?>
    <article id="news">
        <aside>
            <a href=index.php?controleur=news&action=Detail&id=<?php echo $id?>><img src="<?php echo $image ?>" title="<?php echo $titre?>" alt="photo produits" style="width:150px;margin-left: 45px;" /></a>
        </aside>
    </article>
    
</section>
    <?php
}

?>
